<UserControl x:Class="Rage.UI.GemmingTemplateItem"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:Rage="clr-namespace:Rage;assembly=Rage.Base.WPF"
  mc:Ignorable="d">

  <UserControl.Resources>
    <Style x:Key="NormalDialogTextStyle" TargetType="TextBlock">
      <Setter Property="TextWrapping" Value="Wrap" />
      <Setter Property="VerticalAlignment" Value="Top" />
      <Setter Property="Foreground" Value="#3DD1F2" />
      <Setter Property="Margin" Value="8,0" />
      <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="RectangleStyle" TargetType="Rectangle">
      <Setter Property="StrokeThickness" Value="2" />
      <Setter Property="RadiusX" Value="3" />
      <Setter Property="RadiusY" Value="3" />
      <Setter Property="Stroke" Value="#218AAD" />
      <Setter Property="Fill">
        <Setter.Value>
          <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#218AAD" Offset="0" />
            <GradientStop Color="#020D18" Offset="0.35" />
            <GradientStop Color="#020D18" Offset="0.55" />
            <GradientStop Color="#218AAD" Offset="1" />
          </LinearGradientBrush>
        </Setter.Value>
      </Setter>
    </Style>
    <Style x:Key="ButtonStyle" TargetType="Button">
      <Setter Property="Background" Value="#020D18" />
      <Setter Property="Foreground" Value="#3DD1F2" />
      <Setter Property="BorderBrush" Value="#155981" />
      <Setter Property="HorizontalAlignment" Value="Left" />
      <Setter Property="Width" Value="46" />
      <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="NormalDialogCheckStyle" TargetType="CheckBox">
      <Setter Property="VerticalAlignment" Value="Top" />
      <Setter Property="Foreground" Value="#3DD1F2" />
      <Setter Property="Margin" Value="8,0" />
      <Setter Property="FontWeight" Value="Bold" />
      <Setter Property="IsThreeState" Value="True" />
    </Style>
  </UserControl.Resources>

  <Grid x:Name="LayoutRoot" Background="#020D18">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="50"/>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>

    <Button x:Name="DeleteButton" Style="{StaticResource ButtonStyle}" Margin="2,2,2,2" VerticalAlignment="Center" Content="Delete" Width="46" HorizontalAlignment="Center" Click="DeleteTemplate"/>

    <CheckBox Margin="7,4,5,4" VerticalAlignment="Center" Grid.Column="1" HorizontalAlignment="Center" IsChecked="{Binding Mode=TwoWay, Path=Enabled}" Style="{StaticResource NormalDialogCheckStyle}"/>

    <Button Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="DarkRed" Tag="{Binding Mode=OneWay, Path=Armoring}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="ArmoringButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=Armoring}"/>
    </Button>
    <Button Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="Goldenrod" Tag="{Binding Mode=OneWay, Path=Barrel}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="BarrelButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=Barrel}"/>
    </Button>
    <Button Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="DarkBlue" Tag="{Binding Mode=OneWay, Path=Hilt}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="HiltButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=Hilt}"/>
    </Button>
    <Button Grid.Column="5" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="#FF617584" Tag="{Binding Mode=OneWay, Path=Mod}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="ModButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=Mod}"/>
    </Button>
    <Button Grid.Column="6" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="#FF3B3B3B" Tag="{Binding Mode=OneWay, Path=Enhancement}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="EnhancementButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=Enhancement}"/>
    </Button>
    <Button Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="Black" Tag="{Binding Mode=OneWay, Path=ColorCrystal}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="ColorCrystalButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=ColorCrystal}"/>
    </Button>
    <Button Grid.Column="8" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2" Background="Purple" Tag="{Binding Mode=OneWay, Path=Augment}" MouseEnter="MouseEnterButton" MouseLeave="MouseLeaveButton" Click="AugmentButtonClick">
      <Image Width="32" Height="32" Source="{Binding Converter={StaticResource IconPathConverter}, ConverterParameter=IconPath, Path=Augment}"/>
    </Button>
  </Grid>
</UserControl>